package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingMapper {
    void add(OrderSetting orderSetting);

    Long findOrderSetingByOrderDate(@Param("orderDate") Date orderDate);

    void updateNumberByOrderDate(OrderSetting orderSetting);

//    List<OrderSetting> findOrderSettingByDate(@Param("beginDate") String beginDate, @Param("endDate") String endDate);
    List<Map> findOrderSettingByDate(@Param("beginDate") String beginDate, @Param("endDate") String endDate);

    void updateNumberValuesByOrderDate(@Param("date") String date, @Param("num") Integer num);

    long isOrderSettingOk(@Param("orderDate") Date orderDate);

    void updateReservationsByOrderDate(@Param("orderDate") Date orderDate);
}
